const communityService = require('../../service/communityService');
const communityRouter = {
    prefix: '/community',
    routers: [{
            method: 'get',
            handler: communityService.find
        },
        {
            method: 'post',
            handler: communityService.create
        },
        {
            method: 'put',
            handler: communityService.update
        }
    ]
}

module.exports = communityRouter;